//
//  LoginViewController.m
//  BJS151148_ TeamProject_Travel
//
//  Created by lanou3g on 16/3/22.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "LoginViewController.h"
#import "CateAnimationLogin.h"
#import "LCViewController.h"
#import "CDUserFactory.h"
#import "LCEChatListVC.h"
#import "AppDelegate.h"
@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.title = @"用户登陆";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:17],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"iconfont-fanhui-5"] style:UIBarButtonItemStyleDone target:self action:@selector(backAction)];
    
    CateAnimationLogin *login=[[CateAnimationLogin alloc]initWithFrame:CGRectMake(0, 50,self.view.bounds.size.width, 400)];
    
    [login.loginBT addTarget:self action:@selector(loginBTAction) forControlEvents:(UIControlEventTouchUpInside)];
    
    [self.view addSubview:login];
}
-(void)loginBTAction
{
    [self.navigationController popToRootViewControllerAnimated:YES];
    
    
    
    
    
}

- (void)backAction{
    
    [self.navigationController popViewControllerAnimated:YES];
}


@end
